import React, { Component } from 'react'
import Item from './Item';

export default class List extends Component {
  render() {
    return (
      <div>
        <ul>
          {
            this.props.list.map((item, index) => {
              return <Item key={index} item={item} ></Item>
            })
          }

        </ul>
      </div>
    )
  }
}
